<template>
	<play-header :playList='playList'></play-header>
	
</template>

<script>
	import PlayHeader from './pages/play'
	import axios from 'axios'
	
	export default{
		components:{
			PlayHeader
		},
		data(){
			return{
				 playList:[]
			}
		},
		 mounted(){
			axios.get('./play.json').then((res)=>{
				const msg=res.data.data[0];//声明变量获取请求结果里面的数据
				//空数组获取组件数组数据
				this.playList=msg.playList;
			})
		} 
	}
</script>

<style>
</style>
